<?php

require ROOT_PATH.'/Helper/admin_base_abstract.php';

abstract class admin_abstract extends admin_base_abstract
{
    private static $action_list = array(

        '系统管理' => array(
            '用户管理' => 'user_manage',
            '关键词管理' => 'filt_key',
            '二级关键词管理' => 'filt_two_key',
            '内容管理' => 'content_manage',
            '评论管理' => 'comment_manage',       
            '协议管理' => 'agreement',       
        ),
    );

    function __construct($controller)
    {
        parent::__construct($controller);
        if (empty($_SESSION['admin_user'])) {
            $this->redirect('admin/login.html');
        }
        $this->info = $_SESSION['admin_user'];
        $this->view->assign('controller', $controller);


        $this->view->assign('action_list', self::$action_list);

        $menu = self::$action_list;

        $this->view->assign('menu', array_filter($menu));
    }
}

?>
